package com.park.service.impl.pub;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.pub.SensitiveWordModel;
import com.park.client.service.pub.SensitiveWordService;
import com.park.dao.pub.SensitiveWordMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("sensitiveWordService")
public class SensitiveWordServiceImpl extends BaseServiceImpl<SensitiveWordModel> implements SensitiveWordService {
	
	@Autowired
	private SensitiveWordMapper sensitiveWordMapper;

	@Override
	public boolean insert(SensitiveWordModel record) {
		return sensitiveWordMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return sensitiveWordMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(SensitiveWordModel record) {
		return sensitiveWordMapper.insertSelective(record)==1;
	}
	@Override
	public SensitiveWordModel selectByPrimaryKey(Long id) {
		return sensitiveWordMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(SensitiveWordModel record) {
		return sensitiveWordMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(SensitiveWordModel record) {
		return sensitiveWordMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<SensitiveWordModel> selectAll() {
		return sensitiveWordMapper.selectAll();
	}
	@Override
	public List<SensitiveWordModel> selectPagination(SensitiveWordModel t) {
		return sensitiveWordMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(SensitiveWordModel t) {
		return sensitiveWordMapper.selectTotal(t);
	}
	

}
